package com.sdj.quick.web.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.alibaba.fastjson.JSON;
import com.sdj.quick.web.dto.UnionBindCardDto;

/***
 * 全部使用BindCardController对象来绑卡操作
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/bind")
@Deprecated
public class UnionBindCardController extends BaseController{
	
	@RequestMapping("/toUnionBindCard")
	public String toUnionBindCard(){
		return "unionBindCard";
	}

	@RequestMapping(value="/unionBindCard",method=RequestMethod.POST)
	public @ResponseBody String unionBindCard(UnionBindCardDto unionBindCardDto){
		logger.info("快捷银联绑卡发送请求参数对象:【{}】",unionBindCardDto);
		String merKey = unionBindCardDto.getMerKey();
		String path = quickConfig.getBindCardUrl();
		Map<String,String> map = getPostResult(path,merKey,unionBindCardDto);
		return JSON.toJSONString(map);
	}
	
}
